<style>
.fui-goods-item .image .playbtn {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
	padding-top:3rem;
    text-align: center;
    color: #fff;
}
.fui-tab-scroll .item.on:before {background:linear-gradient(to right,rgba(99,190,114,1),rgba(99,190,114,0));}
.fee-tag {background:linear-gradient(to right,rgba(255,155,48,1),rgba(254,39,37,1));color:#fff;width:auto;font-weight:400}
.fui-goods-group.block .fui-goods-item .detail {height:4rem}
.fui-goods-group.block .fui-goods-item .detail.commission_money {height:5rem}
</style>
	<div class="fui-tab-scroll" ng-if="pagedata.p_group.length>0">
		<div ng-class="{'item':1,'on':pagedata.params.pid==0}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.pid=0;tool.get_list('jy_weishop_en/goods.index/getlist/order=ishot',true)">热卖Recommended</a></div>
		<div ng-repeat="tab in pagedata.p_group" style="height:2rem;line-height:1.5rem" ng-class="{'item':1,'on':pagedata.params.pid==tab.id}"><a href="javascript:;" ng-click="pagedata.params.pid=tab.id;tool.get_list('jy_weishop_en/goods.index/getlist/pcate='+tab.id,true)">{{tab.title}}</a></div>
		<div ng-if="!pagedata.p_group || pagedata.p_group.length<1" ng-class="{'item':1,'on':pagedata.params.pid==-1}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.pid=-1;tool.get_list('jy_weishop_en/goods.index/getlist/',true)">其他Goods</a></div>
	</div>
	<div ng-if="pagedata.list" class="fui-goods-group block">
			<div ng-repeat="item in pagedata.list" class="fui-goods-item">
				<div ng-click="pagedata.gotoitem(item);" ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="position:relative;background-image: url({{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}})">
						<div ng-show="item.total <=0" class="salez" style="background-image: url({{tomedia(pagedata.shopset.saleout) || '../addons/jy_weishop/resource/images/salez.png'}}); "></div>
						<div ng-if="item.video" class="playbtn"><i class="icon icon-iconfontplay2" style="font-size:1.6rem;"></i></div>
				</div>
				<div ng-click="pagedata.gotoitem(item);" ng-class="{'detail':1,'commission_money':item.commission_title}">
					<a>
						<div class="name">
							<i ng-show="item.ispresell == 1" class="fui-tag fui-tag-danger">booking</i>
							{{item.title}}
						</div>
					</a>
					<div class="price" style="margin-top: 0.3rem">
						<span class="text">${{item.active.price || item.price}}/{{item.unit || 'A'}}</span>
						<span ng-if="!item.active.title && item.isshowsales!=1" class="subtitle" style="font-weight:400;font-size:0.5rem">Sold{{item.salenum || 0}}</span>
						<span ng-if="item.active.title" class="fui-tag-pink-big" style="font-weight:400">{{item.active.title}}</span>
					</div>
					<div ng-if="item.commission_title || pagedata.feemoney.isopen==1" class="goods-tag">
						<div ng-if="pagedata.feemoney.isopen==1" class="fui-tag fui-tag-danger fee-tag-zi" style="margin-right:0.15rem">{{pagedata.feemoney.tag ||'节省'}}${{item.feemoney || '0.00'}}</div>
						<div ng-if="item.commission_title" class="fui-tag fui-tag-danger fee-tag">{{item.commission_title}}${{item.commission_money}}</div>
					</div>
				</div>
			</div>
	</div>
<div id="showtaobaoke"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="width:80%;left:10%;">
			<div class="wap-qrcode-container" style="border-radius:0.5rem;height:auto">
				<button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
				<p class="example1" style="padding:0.3rem;border-radius:0.5rem;margin:1rem;background:#FFFFCC">{{pagedata.copyinfo}}</p>
				<p ng-click="clip(pagedata.copyinfo)" class="example1 btn btn-sm btn-red-o">Copy goods password</p>
			</div>
		</div>
</div>
<script>
scope.pagedata.gotoitem=function(item){
	if(item.pluginname=='jy_taobaoke'){
		$('#showtaobaoke').modal();
		scope.pagedata.selectgoods=item;
		scope.pagedata.copyinfo='【'+item.title+'】'+item.active.url+' 点击链接，再选择浏览器打开；或复制这段描述'+item.active.code+'后到《Mobile淘宝》';
		scope.$evalAsync();
	}else{
		scope.access_json(item.active.url || 'jy_weishop_en/goods.detail//id='+item.id);
	}
}

scope.tool.get_list('jy_weishop_en/goods.index/getlist/order=ishot',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop_en/goods.index/getlist/');
}
</script>
